package cn.mldn.jedis;

import java.util.Set;

import redis.clients.jedis.Jedis;


/***
 * 
 * 设置hash数据 测试
 * */
public class KeysDemo {
	public static final String REDIS_HOST="127.0.0.1";
	public static final int REDIS_PORT=6379;
	public static void main(String[] args) {
		Jedis jedis=new Jedis(REDIS_HOST,REDIS_PORT);
		
		Set<String> keys=jedis.keys("user-*");
		System.out.println(keys);
		jedis.close();  //返回  pong  则连接成功
	}
}
